package com.thkj.service.impl;

import com.github.abel533.entity.Example;
import com.thkj.entity.LogInfo;
import com.thkj.dao.SysLogMapper;
import com.thkj.service.ISysLogService;
import com.thkj.util.DateUtils;
import dp.util.DateUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service("sysLogService")
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    public SysLogMapper sysLogDao;

    @Override
    public void save(LogInfo sysLog) throws Exception {
        sysLogDao.insert(sysLog);
    }

    @Override
    public List<LogInfo> findByAll() throws Exception {
        return sysLogDao.selectByExample(null);
    }
}
